class CreateTorrentUserTable < ActiveRecord::Migration
  def self.up
		create_table :torrents_users, :id => false do |t|
			t.integer :torrent_id
			t.integer :user_id
			t.timestamps
		end
		
		remove_column :torrents, :user_id
  end

  def self.down
  	drop_table :torrents_users
  	add_column :torrents, :user_id
  end
end
